package com.etc.services.imp;

import com.etc.mapper.UserInfoMapper;
import com.etc.po.UserInfoPo;
import com.etc.services.UserServiceInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserServiceInf {

    // 注入mapper(mapper的实现类没有！而是代理（MapperScanenrConfig配置做的）)
    @Autowired
    UserInfoMapper mapper;

    @Override
    public List<UserInfoPo> getAll() {


        return mapper.findAll();
    }
}
